<?php
import("@.ORG.Url");

class IndexAction extends Action {
    public function index()
    {
        //获取最新的4个上传的图片
        $latestPhoto =  IndexModel::getNewPhoto();

        //最新动态
        $latestMove = IndexModel::getLatestMove();    
        
        //最新留言
        $latestLeave = IndexModel::getLatestLeave();

        //最新文章    
		$latestArticle = IndexModel::getLatestArticle();
        
        //最近登录的用户
        $loginUsers = IndexModel::getLatestLoginUser();
        
        $this->assign("latestPhoto", $latestPhoto);
        $this->assign("latestMove", $latestMove);
        $this->assign("latestLeave", $latestLeave);
        $this->assign("latestArticle", $latestArticle);
        $this->assign("loginUsers", $loginUsers);
        $this->display();
    }
}